package com.rose.doorto.footbathdoor.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rose.doorto.footbathdoor.pojo.Teacher;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lqc
 * @since 2024-07-22
 */
public interface TeacherService extends IService<Teacher> {

    /**
     * 技师信息注册
     * @param teacher
     * @return
     */
    int addITeacher(Teacher teacher);

    /**
     * 技师信息修改
     * @param teacher
     * @return
     */
    int updateITeacher(Teacher teacher);

    /**
     * 按照人气值进行排序
     * @return
     */
    List<Teacher> orderByScore();

    /**
     * 按照距离进行排序
     * @return
     */
    List<Teacher> orderByDistance();

    /**
     * 根据项目id获取技师列表
     * @param id
     * @return
     */
    List<Teacher> getTeacherByProjectId(int id);


    /**
     * 条件查询-----分页
     * @param pageNum
     * @param pageSize
     * @param name
     * @return
     */
    IPage<Teacher> getEntitiesByConditions(int pageNum, int pageSize, String name,int id);

//    Teacher selectById(Integer tid);
}
